import { App } from '@vue/runtime-core'
import {
  Button,
  Card,
  Form,
  Input,
  Layout,
  Modal
} from 'ant-design-vue'

const components = [
  Button,
  Card,
  Form,
  Form.Item,
  Input,
  Input.Password,
  Layout,
  Layout.Header,
  Layout.Sider,
  Layout.Content,
  Modal
]

export const registerComponent = (app: App) => {
  components.forEach(component => {
    app.component(component.name, component)
  })
}
